"
I am an exception that notifies that a file already exists.
"
Class {
	#name : 'FileAlreadyExistsException',
	#superclass : 'FileException',
	#instVars : [
		'file'
	],
	#category : 'Files-Core',
	#package : 'Files',
	#tag : 'Core'
}

{ #category : 'instance creation' }
FileAlreadyExistsException class >> signalOnFile: aFile [

	self new
		file: aFile;
		signal
]

{ #category : 'accessing' }
FileAlreadyExistsException >> file [
	^ file
]

{ #category : 'accessing' }
FileAlreadyExistsException >> file: aFile [

	file := aFile
]

{ #category : 'accessing' }
FileAlreadyExistsException >> messageText [

	^ 'File already exists: ', file basename
]
